<?php

class SiteDefaults {
	
	public function AffiliateInfo($site, $value) {
		// return affiliate information for feeds
		// default values
		$this->Affiliate 		= $value;
		$this->Host				= "ftp.shebang.net";
		$this->Location			= "web3g/admin/";
		$this->LogFile 			= $value;
		$this->LogType 			= "feeds";
		$this->Password			= "qtD9t2Dj";
		$this->Site				= $site;
		$this->User				= "u39669276";
		// site values
		switch($value) 
		{
			case "AffiliateFuture":
			{
			$this->AffiliateCode 	= "afff";
			$this->Landing		 	= "moreinfo";
			break;
			}
			case "WebGains":
			{
			$this->AffiliateCode 	= "webgains";
			$this->Landing		 	= "moreinfo";
			break;
			}
			case "Kelkoo":
			{
			$this->AffiliateCode 	= "kelkoo";
			$this->Landing		 	= "moreinfo";
			break;
			}
			case "Mobiles4Everyone":
			{
			$this->AffiliateCode 	= "webgains";
			$this->Landing		 	= "basket";
			break;
			}
			case "SoMuchEasier":
			{
			$this->AffiliateCode 	= "afff";
			$this->Landing		 	= "moreinfo";
			break;
			}
			case "Omio":
			{
			$this->AffiliateCode 	= "webgains";
			$this->Landing		 	= "moreinfo";
			break;
			}
			case "RupizCompare":
			{
			$this->AffiliateCode 	= "afff";
			$this->Landing		 	= "moreinfo";
			break;
			}
		}
	}
	
	public function LibraryCheck() {
		// return library info
		$this->LogFile 			= "ImageCheck";
		$this->LogType 			= "library";
		$this->Site 			= "web3g";
	}
	
	public function LibraryUpload($site, $environment) {
		// set parameters which are generic
		$this->Environment 		= $environment;
		$this->Library			= true;
		$this->LogFile 			= "ImageUpload";
		$this->LogType 			= "library";
		$this->Site 			= $site;
		// then capture site specific FTP data
		SiteDefaults::FTPData($site, $environment);
	}
	
	public function Sites() {
		// return multi-dimensional array with all sites in
		$sites		= 	array(
							"AFM" => array("dev", "test", "live"),
							"TES" => array("dev", "test", "live"),
							"GOM" => array("dev", "test", "live"),
							"EBU" => array("dev", "test", "live"),
							"CST" => array("dev", "test", "live"),
							"AMZ" => array("live"),
							"ORA" => array("live"),
							"BPY" => array("live")
						);
		
		return $sites;
	}
	
	public function Feeds() {
		// return multi-dimensional array with all sites in
		$sites		= 	array(
							"AFM" => array("dev", "test", "live"),
							"CST" => array("dev", "test", "live"),
							"TES" => array("dev", "test", "live"),
							"GOM" => array("dev", "test", "live"),
							"EBU" => array("dev", "test", "live")
						);
		
		return $sites;
	}
	
	static function Name($value) {
		// return site name from site ID
		switch($value) 
		{
			case "AFM":
			{
			return "Affordable Mobiles";
			}
			case "CST":
			{
			return "CostBiter";
			}
			case "TES":
			{
			return "Tesco Contract Mobile Phones";
			}
			case "GOM":
			{
			return "Go Mobile";
			}
			case "EBU":
			{
			return "Ebuyer Mobile";
			}
			case "AMZ":
			{
			return "My Mobile UK";
			}
			case "ORA":
			{
			return "Orange Accessory Portal";
			}
			case "HTC":
			{
			return "HTC Forces Mobile";
			}
			case "BPY":
			{
			return "Beepy Mobiles";
			}
			case "WHS":
			{
			return "WHSmith Mobiles";
			}
			case "web3g":
			{
			return "web3g Administration";
			}
		}
	}
	
	static function URL($value, $environment) {
		// return site name from site ID
		switch($value) 
		{
			case "AFM":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.affordablemobiles.co.uk/";
					}
					case "test":
					{
					return "http://test.affordablemobiles.co.uk/";
					}
					case "live":
					{
					return "http://www.affordablemobiles.co.uk/";
					}
				}
			}
			case "CST":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.costbiter.co.uk/";
					}
					case "test":
					{
					return "http://test.costbiter.co.uk/";
					}
					case "live":
					{
					return "http://www.costbiter.co.uk/";
					}
				}
			}
			case "TES":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.tescocontractmobilephones.com/";
					}
					case "test":
					{
					return "http://test.tescocontractmobilephones.com/";
					}
					case "live":
					{
					return "http://www.tescocontractmobilephones.com/";
					}
				}
			}
			case "GOM":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.gomobileuk.com/";
					}
					case "test":
					{
					return "http://test.gomobileuk.com/";
					}
					case "live":
					{
					return "http://www.gomobileuk.com/";
					}
				}
			}
			case "EBU":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.ebuyermobile.com/";
					}
					case "test":
					{
					return "http://test.ebuyermobile.com/";
					}
					case "live":
					{
					return "http://www.ebuyermobile.com/";
					}
				}
			}
			case "AMZ":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.mymobileuk.com/";
					}
					case "test":
					{
					return "http://test.mymobileuk.com/";
					}
					case "live":
					{
					return "http://www.mymobileuk.com/";
					}
				}
			}
			case "WHS":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://dev.whsmithmobiles.com/";
					}
					case "test":
					{
					return "http://test.whsmithmobiles.com/";
					}
					case "live":
					{
					return "http://www.whsmithmobiles.com/";
					}
				}
			}
			case "ORA":
			{
			return "http://www.accessoryportal.co.uk/";
			}
			case "HTC":
			{
			return "http://www.htcforcesmobile.co.uk/";
			}
			case "BPY":
			{
			return "http://www.beepy.co.uk/";
			}
			case "web3g":
			{
			return "http://www.web3g.co.uk/";
			}
		}
	}
	
	static function SIMFreePrice($value) {
		// return sim free price from site ID
		switch($value) 
		{
			case "AFM":
			{
			return "WebRPLOW";
			}
			case "CST":
			{
			return "WebRPLOW";
			}
			case "TES":
			{
			return "WebRPMED";
			}
			case "JAG":
			{
			return "WebRPLOW";
			}
			case "GOM":
			{
			return "WebRPLOW";
			}
			case "EBU":
			{
			return "WebRPLOW";
			}
			case "AMZ":
			{
			return "WebRPLOW";
			}
			case "ORA":
			{
			return "WebRPHIGH";
			}
			case "HTC":
			{
			return "WebRPHIGH";
			}
			case "WHS":
			{
			return "WebRPHIGH";
			}
		}
	}
	
	static function AccessoryPrice($value) {
		// return accessory price from site ID
		switch($value) 
		{
			case "AFM":
			{
			return "WebRPLOW";
			}
			case "CST":
			{
			return "WebRPLOW";
			}
			case "TES":
			{
			return "WebRPHIGH";
			}
			case "JAG":
			{
			return "WebRPLOW";
			}
			case "GOM":
			{
			return "WebRPHIGH";
			}
			case "EBU":
			{
			return "WebRPLOW";
			}
			case "AMZ":
			{
			return "WebRPLOW";
			}
			case "ORA":
			{
			return "WebRPHIGH";
			}
			case "HTC":
			{
			return "WebRPHIGH";
			}
			case "WHS":
			{
			return "WebRPHIGH";
			}
		}
	}
	
	static function BranchCode($value) {
		// return accessory price from site ID
		switch($value) 
		{
			case "AFM":
			{
			return "AFM001";
			}
			case "CST":
			{
			return "SWLDAV";
			}
			case "GOM":
			{
			return "GOM001";
			}
			case "HTC":
			{
			return "GOHTC";
			}
			case "JAG":
			{
			return "JCWEB";
			}
			case "WHS":
			{
			return "WHSWHS";
			}
		}
	}
	
	static function BasketLimitations($value) {
		// return accessory price from site ID
		switch($value) 
		{
			case "AFM":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 10;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "CST":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 10;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "GOM":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "HTC":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "JAG":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "ORA":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "STP":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "TES":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
			case "WHS":
			{
			$_SESSION['ContractXNetwork']	= false;
			$_SESSION['PrepayXNetwork']		= true;
			$_SESSION['ContractLimit']		= 2;
			$_SESSION['PrepayLimit']		= 2;
			$_SESSION['PrepaySIMLimit']		= 1;
			$_SESSION['SIMFreeLimit']		= 1;
			$_SESSION['AccessoryLimit']		= 10;
			break;
			}
		}
	}
	
	static function SEOLinks($site, $category) {
		// return seo sections for landing pages etc...
		switch($site) 
		{
			case "AFM":
			{
				switch($category)
				{
					case "contract":
					{
					return "paymonthly";
					}
					case "payasyougo":
					{
					return "payasyougo";
					}
					case "simfree":
					{
					return "simfree";
					}
					case "accessory":
					{
					return "accessories";
					}
				}
			}
			case "CST":
			{
				switch($category)
				{
					case "contract":
					{
					return "paymonthly";
					}
					case "payasyougo":
					{
					return "payasyougo";
					}
					case "simfree":
					{
					return "simfree";
					}
					case "accessory":
					{
					return "accessories";
					}
				}
			}
			case "TES":
			{
				switch($category)
				{
					case "contract":
					{
					return "paymonthly";
					}
					case "simfree":
					{
					return "sim-free-mobile-phones";
					}
					case "accessory":
					{
					return "accessories";
					}
				}
			}
			case "GOM":
			{
				switch($category)
				{
					case "contract":
					{
					return "contract-mobile-phones";
					}
					case "payasyougo":
					{
					return "pre-pay-mobile-phones";
					}
					case "simfree":
					{
					return "sim-free-mobile-phones";
					}
					case "accessory":
					{
					return "mobile-phone-accessories";
					}
				}
			}
			case "EBU":
			{
				switch($category)
				{
					case "contract":
					{
					return "paymonthly";
					}
					case "payasyougo":
					{
					return "payasyougo";
					}
					case "simfree":
					{
					return "simfree";
					}
					case "accessory":
					{
					return "accessories";
					}
				}
			}
		}
	}
	
	static function Analytics($site, $environment) {
		// return analytics as per site
		switch($site) 
		{
			case "AFM":
			{
				switch($environment)
				{
					case "dev":
					{
					$array =	array(
										'file'		=> 'affordablemobiles.co.uk/dev.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-2742293-1',
															 'domain'			=> 'affordablemobiles.co.uk'
													 		)
								 	);
					return $array;
					}
					case "test":
					{
					$array =	array(
										'file'		=> 'affordablemobiles.co.uk/test.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-2742293-1',
															 'domain'			=> 'affordablemobiles.co.uk'
													 		)
								 	);
					return $array;
					}
					case "live":
					{
					$array =	array(
										'file'		=> 'affordablemobiles.co.uk/live.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-2742293-1',
															 'domain'			=> 'affordablemobiles.co.uk'
													 		)
								 	);
					return $array;
					}
				}
			}
			case "CST":
			{
				switch($environment)
				{
					case "dev":
					{
					$array =	array(
										'file'		=> 'costbiter.co.uk/dev.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-13282173-1',
															 'domain'			=> 'costbiter.co.uk'
													 		)
								 	);
					return $array;
					}
					case "test":
					{
					$array =	array(
										'file'		=> 'costbiter.co.uk/test.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-13282173-1',
															 'domain'			=> 'costbiter.co.uk'
													 		)
								 	);
					return $array;
					}
					case "live":
					{
					$array =	array(
										'file'		=> 'costbiter.co.uk/live.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-13282173-1',
															 'domain'			=> 'costbiter.co.uk'
													 		)
								 	);
					return $array;
					}
				}
			}
			case "GOM":
			{
				switch($environment)
				{
					case "dev":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/dev.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-2647654-2',
															 'domain'			=> 'gomobileuk.com'
													 		)
								 	);
					return $array;
					}
					case "test":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/test.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-2647654-2',
															 'domain'			=> 'gomobileuk.com'
													 		)
								 	);
					return $array;
					}
					case "live":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/live.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-2647654-2',
															 'domain'			=> 'gomobileuk.com'
													 		)
								 	);
					return $array;
					}
				}
			}
			case "HTC":
			{
				switch($environment)
				{
					case "dev":
					{
					$array =	array(
										'file'		=> 'htcforcesmobile.co.uk/dev.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-9075675-1',
															 'domain'			=> 'htcforcesmobile.co.uk'
													 		)
								 	);
					return $array;
					}
					case "test":
					{
					$array =	array(
										'file'		=> 'htcforcesmobile.co.uk/test.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-9075675-1',
															 'domain'			=> 'htcforcesmobile.co.uk'
													 		)
								 	);
					return $array;
					}
					case "live":
					{
					$array =	array(
										'file'		=> 'htcforcesmobile.co.uk/live.GoogleAnalytics.inc.php',
										'params'	=> array(
															 'tracking_code' 	=> 'UA-9075675-1',
															 'domain'			=> 'htcforcesmobile.co.uk'
													 		)
								 	);
					return $array;
					}
				}
			}
			case "TES":
			{
				switch($environment)
				{
					case "live":
					{
					$array =	array(
										'file'		=> 'tescocontractmobilephones.com/live.Analytics.inc.php',
										'params'	=> array(
													 		)
								 	);
					return $array;
					}
				}
			}
		}
	}
	
	static function Conversion($site, $environment) {
		// return analytics as per site
		switch($site) 
		{
			case "GOM":
			{
				switch($environment)
				{
					case "dev":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/dev.GoogleConversion.inc.php',
										'params'	=> array(
															 'label' 			=> 'K6ErCKalugEQrJjE9gM',
															 'id'				=> '1053887532',
															 'value'			=> '4.6'
													 	)
								 	);
					return $array;
					}
					case "test":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/test.GoogleConversion.inc.php',
										'params'	=> array(
															 'label' 			=> 'K6ErCKalugEQrJjE9gM',
															 'id'				=> '1053887532',
															 'value'			=> '4.6'
													 	)
								 	);
					return $array;
					}
					case "live":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/live.GoogleConversion.inc.php',
										'params'	=> array(
															 'label' 			=> 'K6ErCKalugEQrJjE9gM',
															 'id'				=> '1053887532',
															 'value'			=> '4.6'
													 	)
								 	);
					return $array;
					}
				}
			}
		}
	}
	
	static function CheckoutURL($value, $environment) {
		// return site name from site ID
		switch($value) 
		{
			case "AFM":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "https://secure.affordablemobiles.co.uk/";
					}
					case "test":
					{
					return "https://secure.affordablemobiles.co.uk/";
					}
					case "live":
					{
					return "https://secure.affordablemobiles.co.uk/";
					}
				}
			}
			case "CST":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "https://secure.costbiter.co.uk/";
					}
					case "test":
					{
					return "https://secure.costbiter.co.uk/";
					}
					case "live":
					{
					return "https://secure.costbiter.co.uk/";
					}
				}
			}
			case "GOM":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://test.gom.web3g.co.uk/";
					}
					case "test":
					{
					return "http://test.gom.web3g.co.uk/";
					}
					case "live":
					{
					return "https://secure.gomobileuk.com/";
					}
				}
			}
			case "HTC":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://test.htc.web3g.co.uk/";
					}
					case "test":
					{
					return "http://test.htc.web3g.co.uk/";
					}
					case "live":
					{
					return "https://secure.htcforcesmobile.co.uk/";
					}
				}
			}
			case "JAG":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://test.jag.web3g.co.uk/";
					}
					case "test":
					{
					return "http://test.jag.web3g.co.uk/";
					}
					case "live":
					{
					return "https://secure.jagmobiles.co.uk/";
					}
				}
			}
			case "ORA":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://test.oap.web3g.co.uk/";
					}
					case "test":
					{
					return "http://test.oap.web3g.co.uk/";
					}
					case "live":
					{
					return "https://secure.accessoryportal.co.uk/";
					}
				}
			}
			case "STP":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "test.stp.web3g.co.uk/";
					//return "https://secure.staplesmobile.co.uk:448/";
					}
					case "test":
					{
					return "http://test.stp.web3g.co.uk/";
					//return "https://secure.staplesmobile.co.uk:448/";
					}
					case "live":
					{
					return "https://secure.staplesmobile.co.uk/";
					}
				}
			}
			case "TES":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "http://test.tcm.web3g.co.uk/";
					}
					case "test":
					{
					return "http://test.tcm.web3g.co.uk/";
					}
					case "live":
					{
					return "https://secure.tescocontractmobilephones.com/";
					}
				}
			}
			case "WHS":
			{
				// the url is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					return "https://secure.whsmithmobiles.com/";
					}
					case "test":
					{
					return "https://secure.whsmithmobiles.com/";
					}
					case "live":
					{
					return "https://secure.whsmithmobiles.com/";
					}
				}
			}
		}
	}
	
	//////////////////////////////////////////
	//				FTP Data				//
	//////////////////////////////////////////
	
	public function FTPData($site, $environment) {
		// return site name from site ID
		switch($site) 
		{
			case "AFM":
			{
			$this->Host			= "192.168.100.240";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "affordable_dev";
					break;
					}
					case "test":
					{
					$this->User		= "affordable_test";
					break;
					}
					case "live":
					{
					$this->User		= "affordable_live";
					break;
					}
				}
			break;
			}
			case "CST":
			{
			$this->Host			= "192.168.100.240";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "costbiter_dev";
					break;
					}
					case "test":
					{
					$this->User		= "costbiter_test";
					break;
					}
					case "live":
					{
					$this->User		= "costbiter_live";
					break;
					}
				}
			break;
			}
			case "TES":
			{
			$this->Host			= "192.168.100.242";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "tesco_dev";
					break;
					}
					case "test":
					{
					$this->User		= "tesco_test";
					break;
					}
					case "live":
					{
					$this->User		= "tesco_live";
					break;
					}
				}
			break;
			}
			case "GOM":
			{
			$this->Host			= "192.168.100.244";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "gomobile_dev";
					break;
					}
					case "test":
					{
					$this->User		= "gomobile_test";
					break;
					}
					case "live":
					{
					$this->User		= "gomobile_live";
					break;
					}
				}
			break;
			}
			case "EBU":
			{
			$this->Host			= "192.168.100.243";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "ebuyer_dev";
					break;
					}
					case "test":
					{
					$this->User		= "ebuyer_test";
					break;
					}
					case "live":
					{
					$this->User		= "ebuyer_live";
					break;
					}
				}
			break;
			}
			case "AMZ":
			{
			$this->Host			= "192.168.100.247";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "mymobileuk_dev";
					break;
					}
					case "test":
					{
					$this->User		= "mymobileuk_test";
					break;
					}
					case "live":
					{
					$this->User		= "mymobileuk_live";
					break;
					}
				}
			break;
			}
			case "ORA":
			{
			$this->Host			= "192.168.100.246";
			$this->Password		= "sh3b4ng";
				// the username is diferent as per site
				switch($environment)
				{
					case "dev":
					{
					$this->User		= "ap_dev";
					break;
					}
					case "test":
					{
					$this->User		= "ap_test";
					break;
					}
					case "live":
					{
					$this->User		= "ap_live";
					break;
					}
				}
			break;
			}
			case "BPY":
			{
			$this->Host			= "195.182.177.77";
			$this->Password		= "shebangul!";
				// the username is diferent as per site
				switch($environment)
				{
					case "live":
					{
					$this->User		= "shebang";
					break;
					}
				}
			break;
			}
		}
	}
	
	//////////////////////////////////////////
	//				Affiliates				//
	//////////////////////////////////////////
	
	static function AffiliateTracking($code, $site, $value, $wg, $afff, $dgm, $units, $prices, $voucher) {
		// sort out tracking
		switch($code) 
		{
			case "afff":
			{
				switch($site)
				{
					case "AFM":
					{
					$array =	array(
										'file'		=> 'affordablemobiles.co.uk/live.AffiliateFuture.inc.php',
										'params'	=> array(
															 'merchant-id' 		=> '2875',
															 'order-value'		=> $value,
															 'items'			=> $afff
													 		)
								 	);
					return $array;
					break;
					}
					case "GOM":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/live.AffiliateFuture.inc.php',
										'params'	=> array(
															 'merchant-id' 		=> '3971',
															 'order-value'		=> $value,
															 'items'			=> $afff
													 		)
								 	);
					return $array;
					break;
					}
					case "TES":
					{
					$array =	array(
										'file'		=> 'tescocontractmobilephones.com/live.AffiliateFuture.inc.php',
										'params'	=> array(
															 'merchant-id' 		=> '3020',
															 'order-value'		=> $value,
															 'items'			=> $afff
													 		)
								 	);
					return $array;
					break;
					}
				}
			break;
			}
			case "avon":
			{
				$array = 		array(
							   			'file' => 'avonmobiles.co.uk/live.AvonMobiles.inc.php',
										'params'	=> array(
															 'code'				=> $voucher
													 		)
									);
				return $array;
				break;
			}
			case "campc";
			{
				switch($site)
				{
					case "AFM":
					{
					$array =	array(
									  	'file' 		=> 'affordablemobiles.co.uk/live.EmailVision.inc.php',
										'params'	=> array(
															 'client_id'		=> '1100046866'
															 )
									);
					return $array;
					break;
					}
				}
			break;
			}
			case "dgm":
			{
				switch($site)
				{
					case "CST":
					{
					$array =	array(
										'file'		=> 'costbiter.co.uk/live.DGM.inc.php',
										'params'	=> array(
															 'merchant-id' 		=> '58445',
															 'order-value'		=> $value,
															 'items'			=> $dgm
													 		)
								 	);
					return $array;
					break;
					}
				}
			break;
			}
			case "fmm":
			{
				switch($site)
				{
					case "AFM":
					{
					$array =	array(
										'file'		=> 'affordablemobiles.co.uk/live.FreeMaxMedia.inc.php',
										'params'	=> array(
															 'id'				=> '17'
													 		)
								 	);
					return $array;
					break;
					}
					case "GOM":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/live.FreeMaxMedia.inc.php',
										'params'	=> array(
															 'id'				=> '36'
													 		)
								 	);
					return $array;
					break;
					}
				}
			break;
			}
			case "jemm":
			{
				switch($site)
				{
					case "GOM":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/live.JemmMedia.inc.php',
										'params'	=> array()
								 	);
					return $array;
					break;
					}
				}
			break;
			}
			case "webgains":
			{
				switch($site)
				{
					case "AFM":
					{
					$array =	array(
										'file'		=> 'affordablemobiles.co.uk/live.WebGains.inc.php',
										'params'	=> array(
															 'order_value' 		=> $value,
															 'event_id'			=> '',
															 'items'			=> $wg,
															 'pin'				=> '3246',
															 'program_id'		=> '1313'
													 		)
								 	);
					return $array;
					break;
					}
					case "GOM":
					{
					$array =	array(
										'file'		=> 'gomobileuk.com/live.WebGains.inc.php',
										'params'	=> array(
															 'order_value' 		=> $value,
															 'event_id'			=> '',
															 'items'			=> $wg,
															 'pin'				=> '7781',
															 'program_id'		=> '2090'
													 		)
								 	);
					return $array;
					break;
					}
					case "TES":
					{
					$array =	array(
										'file'		=> 'tescocontractmobilephones.com/live.WebGains.inc.php',
										'params'	=> array(
															 'order_value' 		=> $value,
															 'event_id'			=> '',
															 'items'			=> $wg,
															 'pin'				=> '4151',
															 'program_id'		=> '1413'
													 		)
								 	);
					return $array;
					break;
					}
				}
			break;
			}
			case "yahoo":
			{
				switch($site)
				{
					case "TES":
					{
					$array =	array(
										'file'		=> 'tescocontractmobilephones.com/live.YahooAnalytics.inc.php',
										'params'	=> array(
															 'order_value' 		=> $value,
															 'units'			=> $units,
															 'prices'			=> $prices
														)
								 	);
					return $array;
					break;
					}
				}
			break;
			}
		}
	}

}

?>